const Router = require('koa-router')

let Routers = new Router()
// 配置路由
const userRouter = require('./route/userRouter')
const resourcesRouter = require('./route/resourcesRouter')
const productRouter = require('./route/productRouter')
const shoppingCartRouter = require('./route/shoppingCartRouter')
const orderRouter = require('./route/orderRouter')
const collectRouter = require('./route/collectRouter')

Routers.use(userRouter.routes())
Routers.use(resourcesRouter.routes())
Routers.use(productRouter.routes())
Routers.use(shoppingCartRouter.routes())
Routers.use(orderRouter.routes())
Routers.use(collectRouter.routes())

// 暴露
module.exports = Routers
